package com.da.common.entity;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-01-13
 * @Version: 1.0
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "snowflake")
public class SnowflakeProperties {

    private long workerId = 0;
    private long dataCenterId = 0;
    private long epoch = 1609459200000L; // 默认：2021-01-01 00:00:00
    private long workerIdBits = 5L;
    private long dataCenterIdBits = 5L;
    private long sequenceBits = 12L;
}


